<?php
defined('EXEC') or die();
function readMenu($menuxml){
	global $pages;
	foreach ($menuxml->li as $li){
		$href = @$li->a['href'];
		$parts = explode('=', $href);
		unset($parts[0]);
		$parts = implode('=', $parts);
		$parts = explode('/', $parts);
		$menuitem = $parts[count($parts) - 1];
		if($menuitem)
			$pages[$menuitem] = array(	'label' => (string) $li->a, 'link' => (string) $href );
			
		if(@$li->ul){
			readMenu($li->ul);
		}
	}
}
require_once('top.php');	
?>


<!-- Modal Teste -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  <div class="modal-dialog" style="width: 400px">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
        <h3 class="modal-title text-default"><?php echo Config::SYSTEM; ?></h3>
      </div>
      <div class="modal-body">
        <p>Deseja realmente sair do sistema?</p>
      </div>
      <div class="modal-footer">
        <button type="button" onclick="window.location = '?logout=1';" class="btn btn-default"><i class="fa fa-check-circle-o"></i> Sim</button>
        <button type="button" class="btn btn-danger" data-dismiss="modal"><i class="fa fa-times-circle-o"></i> Cancelar</button>
      </div>
    </div><!-- /.modal-content -->
  </div><!-- /.modal-dialog -->
</div><!-- /.modal -->

<script type="text/javascript">
$(function(){
	
});
</script>